package com.test.ssm.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.test.ssm.dao.FeedbackDao;
import com.test.ssm.pojo.Feedback;
import com.test.ssm.service.FeedbakService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 徒有琴
 */
@Service
public class FeedbackServiceImpl implements FeedbakService {
    @Autowired
    private FeedbackDao feedbackDao;

    @Override
    public PageInfo<Feedback> getFeedbackList(Integer pageNum, Integer pageSize, Integer teacherId, Integer classId, String studentName) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(feedbackDao.getFeedbackList(teacherId, classId, studentName), 5);
    }
}
